<?php


namespace app\models\user;


use think\Model;

class AdminRoleModel extends Model {
    protected $name = 'admin_role';

// 定义与 User 模型的关联关系
    public function user()
    {
        return $this->belongsTo(UserModel::class, 'role_id', 'id');
    }
}